package com.lxyk.yygh.msm.utils;


//short message send 短信发送模块

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component //不加全为null,后边报错
public class MsmUtils implements InitializingBean {


    @Value("${aliyun.sms.regionId}")
    private String regionId;

    @Value("${aliyun.sms.accessKeyId}")
    private String accessKeyId;

    @Value("${aliyun.sms.accessKeySecret}")
    private String accessKeySecret;

    public static String REGION_Id;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRECT;


    //实现的方法
    @Override
    public void afterPropertiesSet() throws Exception {

        REGION_Id=regionId;
        ACCESS_KEY_ID=accessKeyId;
        ACCESS_KEY_SECRECT=accessKeySecret;

    }


}
